
<template>
  <div class="app-container">
    <el-row :gutter="10" class="mb8" ref="refbut">
      <el-col :span="1.5">
        <el-date-picker v-model="year" type="year" placeholder="选择年" id="year" format="yyyy" value-format="yyyy"
          @change="getYearReport()">
        </el-date-picker>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" plain icon="el-icon-s-marketing" @click="getStatistics()">统计</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="success" plain icon="el-icon-edit" @click="handAdd()"
          v-hasPermi="['archive:statistics:annualReport:add']">保存</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="danger" plain icon="el-icon-download" @click="handleExport()"
          v-hasPermi="['archive:statistics:annualReport:export']">导出Excel</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-printer" @click="printPreview()"
          v-hasPermi="['archive:statistics:annualReport:print']">打印</el-button>
      </el-col>
    </el-row>


    <form id="form1" name="form1" :style="isSize">
      <div class="page" id="page">
        <div style="width: 70%; margin: 0 auto 10px;">
          <h1 align="center" style="font-size: 25px;">档案室基本情况表</h1>
        </div>

        <table style="border-collapse: collapse;border-spacing: 0;margin: 0 auto;" width="70%" align="center">
          <tr>

            <td width="5.5%"></td>
            <td style="text-align: left" width="17%"></td>
            <td width="22.5%"></td>
            <td width="10%"></td>
            <td width="15%"></td>
            <td width="30%">
              <font style="display: flex;flex-direction: row;">表<span style="width:27px"></span>号：<input
                  class="hid align-rigth" value="DA-3表" name="C108_1" id="C108_1" style="width: 200px;" disabled /></font>
            </td>
          </tr>
          <tr>
            <td width="5.5%"></td>
            <td style="text-align: left" width="17%"></td>
            <td width="22.5%"></td>
            <td width="10%"></td>
            <td width="15%"></td>
            <td width="30%">
              <font style="display: flex;flex-direction: row;">制定机关：<input class="hid align-rigth" value="国家统计局"
                  name="C109_1" id="C109_1" style="width:200px" disabled/></font>
            </td>
          </tr>
          <tr>
            <td width="5.5%"></td>
            <td style="text-align: left" width="17%"></td>
            <td width="22.5%"></td>
            <td width="10%"></td>
            <td width="15%"></td>

            <td width="30%">
              <font style="display: flex;flex-direction: row;">批准机关：<input class="hid align-rigth" value="国家统计局"
                  name="C110_1" id="C110_1" style="width:200px" disabled /></font>
            </td>
          </tr>
          <tr>
            <td width="5.5%">01</td>
            <td style="text-align: left;color:red!important;" width="17%">
              统一社会信用代码：

            </td>
            <td width="22.5%">
              <input class="hid" name="C111_1" id="C111_1" />
            </td>
            <td width="10%"></td>
            <td width="15%"></td>

            <td width="30%" style="">
              <font style="display: flex;flex-direction: row;">批准文号：<input class="hid align-rigth" value="国统制(2022)190号"
                  name="C112_1" id="C112_1" style="width: 200px;" disabled /></font>
            </td>
          </tr>
          <tr>
            <td width="5.5%">02</td>
            <td style="text-align: left" width="17%">
              单&emsp;&thinsp;&thinsp;位&emsp;&thinsp;&thinsp;名&emsp;&thinsp;称：
            </td>
            <td width="22.5%"><input class="hid" name="C113_1" id="C113_1" /></td>
            <td width="10%"></td>
            <td width="15%"></td>
            <td width="30%" style="">
              <font style="display: flex;flex-direction: row;">有效期至：<input class="hid align-rigth" value="2025年12月"
                  name="C114_1" id="C114_1" style="width: 200px;" disabled/></font>
            </td>
          </tr>
          <tr>
            <td style="border-top: 2px solid #000;" width="5.5%">03</td>
            <td style="text-align: left; border-top: 2px solid #000;" width="17%">
              单&thinsp;&thinsp;位&thinsp;&thinsp;类&thinsp;&thinsp;别&thinsp;&thinsp;代&thinsp;&thinsp;码：
            </td>
            <td style="border-top: 2px solid #000;" width="22.5%"><input class="hid" name="C115_1" id="C115_1" /></td>
            <td
              style="border-right: 1px solid #000;border-left: 1px solid #000;border-top: 2px solid #000;text-align: center;"
              width="10%">06</td>
            <td style="border-top: 2px solid #000; border-right: 1px solid rgb(0, 0, 0);" width="15%">
              电&emsp;&thinsp;&thinsp;&emsp;&thinsp;&thinsp;&emsp;&thinsp;&thinsp;&emsp;&thinsp;&thinsp;话: </td>
            <td style="border-top: 2px solid rgb(0, 0, 0);text-align: center;" width="30%"><input class="hid"
                name="C116_1" id="C116_1" /></td>
          </tr>
          <tr>
            <td style="border-top: 1px solid rgb(0, 0, 0);" width="5.5%">04</td>
            <td style="border-top: 1px solid rgb(0, 0, 0);" width="17%">
              邮&emsp;&thinsp;&thinsp;政&emsp;&thinsp;&thinsp;编&emsp;&thinsp;&thinsp;码： </td>
            <td style="border-top: 1px solid rgb(0, 0, 0);" width="22.5%"><input class="hid" name="C117_1" id="C117_1" />
            </td>
            <td rowspan="2"
              style="border-bottom: 0 ;border-left: 1px solid #000;border-right: 1px solid #000;border-top: 1px solid rgb(0, 0, 0); text-align: center;"
              width="10%">07</td>
            <td style="border-bottom: 0;border-right: 1px solid #000;border-top: 1px solid #000;text-align: center;"
              rowspan="2" width="15%">机&emsp;&thinsp;&thinsp;构&emsp;&thinsp;&thinsp;情&emsp;&thinsp;&thinsp;况: </td>
            <td style="border-bottom: 0;border-top: 1px solid rgb(0, 0, 0);text-align: center;" rowspan="2" width="30%">
              <input class="hid" name="C118_1" id="C118_1" /></td>
          </tr>
          <tr>
            <td style="border-bottom: 0;border-top: 1px solid rgb(0, 0, 0);" width="5.5%">05</td>
            <td style="border-bottom: 0;border-top: 1px solid rgb(0, 0, 0);" width="17%">
              单&emsp;&thinsp;&thinsp;位&emsp;&thinsp;&thinsp;地&emsp;&thinsp;&thinsp;址： </td>
            <td style="border-bottom: 0;border-top: 1px solid rgb(0, 0, 0);" width="22.5%"><input class="hid"
                name="C119_1" id="C119_1" /></td>

          </tr>
        </table>

        <table class="tables" width="70%" align="center" id="contents">
          <thead height="30" style="display: table-header-group;">
            <tr>

              <td width="45%" class="border-right-1">
                <label>指标名称</label>
              </td>
              <td width="10%" class="border-right-1">
                <label>计量单位</label>
              </td>
              <td width="15%" class="border-right-1">
                <label>代码</label>
              </td>
              <td width="20%" class="border-right-1">
                <label>数量</label>
              </td>
              <td rowspan="2" width="10%">上年度数据</td>
            </tr>
            <tr>
              <td class="border-right-1">甲</td>
              <td class="border-right-1">乙</td>
              <td class="border-right-1">丙</td>
              <td class="border-right-1">1</td>
            </tr>
          </thead>
          <tbody id="content">
            <tr>
              <td>一、人员情况</td>
              <td>一</td>
              <td>一</td>
              <td>
                一
              </td>
              <td>一</td>
            </tr>
            <tr>
              <td>专职人员</td>
              <td>人</td>
              <td>08</td>
              <td>
                <input name="C2_1" id="C2_1" />
              </td>
              <td>
                <input name="C2_2" id="C2_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">其中：女性</td>
              <td>人</td>
              <td>09</td>
              <td>
                <input name="C3_1" id="C3_1" />
              </td>
              <td>
                <input name="C3_2" id="C3_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">年龄</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2">50岁及以上</td>
              <td>人</td>
              <td>10</td>
              <td>
                <input name="C4_1" id="C4_1" />
              </td>
              <td> <input name="C4_2" id="C4_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">35—49岁</td>
              <td>人</td>
              <td>11</td>
              <td>
                <input name="C5_1" id="C5_1" />
              </td>
              <td>
                <input name="C5_2" id="C5_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">34岁及以下</td>
              <td>人</td>
              <td>12</td>
              <td>
                <input name="C6_1" id="C6_1" />
              </td>
              <td>
                <input name="C6_2" id="C6_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">专业人员文化程度</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2">博士研究生</td>
              <td>人</td>
              <td>13</td>
              <td>
                <input name="C7_1" id="C7_1" />
              </td>
              <td>
                <input name="C7_2" id="C7_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">硕士研究生</td>
              <td>人</td>
              <td>14</td>
              <td>
                <input name="C8_1" id="C8_1" />
              </td>
              <td>
                <input name="C8_2" id="C8_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">研究生班研究生</td>
              <td>人</td>
              <td>15</td>
              <td>
                <input name="C9_1" id="C9_1" />
              </td>
              <td>
                <input name="C9_2" id="C9_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">双学士</td>
              <td>人</td>
              <td>16</td>
              <td>
                <input name="C10_1" id="C10_1" />
              </td>
              <td>
                <input name="C10_2" id="C10_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">大学本科</td>
              <td>人</td>
              <td>17</td>
              <td>
                <input name="C11_1" id="C11_1" />
              </td>
              <td>
                <input name="C11_2" id="C11_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">大专</td>
              <td>人</td>
              <td>18</td>
              <td>
                <input name="C12_1" id="C12_1" />
              </td>
              <td>
                <input name="C12_2" id="C12_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">高中（含中专）及以下</td>
              <td>人</td>
              <td>19</td>
              <td>
                <input name="C13_1" id="C13_1" />
              </td>
              <td>
                <input name="C13_2" id="C13_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">专业文化程度</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2">博士研究生</td>
              <td>人</td>
              <td>20</td>
              <td>
                <input name="C14_1" id="C14_1" />
              </td>
              <td>
                <input name="C14_2" id="C14_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">硕士研究生</td>
              <td>人</td>
              <td>21</td>
              <td>
                <input name="C15_1" id="C15_1" />
              </td>
              <td>
                <input name="C15_2" id="C15_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">研究生班研究生</td>
              <td>人</td>
              <td>22</td>
              <td>
                <input name="C16_1" id="C16_1" />
              </td>
              <td>
                <input name="C16_2" id="C16_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">大学本科</td>
              <td>人</td>
              <td>23</td>
              <td>
                <input name="C17_1" id="C17_1" />
              </td>
              <td>
                <input name="C17_2" id="C17_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">大专</td>
              <td>人</td>
              <td>24</td>
              <td>
                <input name="C18_1" id="C18_1" />
              </td>
              <td><input name="C18_2" id="C18_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">中专</td>
              <td>人</td>
              <td>25</td>
              <td>
                <input name="C19_1" id="C19_1" />
              </td>
              <td>
                <input name="C19_2" id="C19_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">档案干部专业技术职务</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2">研究馆员</td>
              <td>人</td>
              <td>26</td>
              <td>
                <input name="C20_1" id="C20_1" />
              </td>
              <td>
                <input name="C20_2" id="C20_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">副研究馆员</td>
              <td>人</td>
              <td>27</td>
              <td>
                <input name="C21_1" id="C21_1" />
              </td>
              <td>
                <input name="C21_2" id="C21_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">馆员</td>
              <td>人</td>
              <td>28</td>
              <td>
                <input name="C22_1" id="C22_1" />
              </td>
              <td>
                <input name="C22_2" id="C22_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">助理馆员</td>
              <td>人</td>
              <td>29</td>
              <td>
                <input name="C23_1" id="C23_1" />
              </td>
              <td>
                <input name="C23_2" id="C23_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">管理员</td>
              <td>人</td>
              <td>30</td>
              <td>
                <input name="C24_1" id="C24_1" />
              </td>
              <td>
                <input name="C24_2" id="C24_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">兼职人员</td>
              <td>人</td>
              <td>31</td>
              <td>
                <input name="C25_1" id="C25_1" />
              </td>
              <td>
                <input name="C25_2" id="C25_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">本年度接受档案业务在职培训教育</td>
              <td>期</td>
              <td>32</td>
              <td>
                <input name="C26_1" id="C26_1" />
              </td>
              <td>
                <input name="C26_2" id="C26_2" />

              </td>
            </tr>
            <tr>
              <td></td>
              <td>人次</td>
              <td>33</td>
              <td>
                <input name="C27_1" id="C27_1" />
              </td>
              <td>
                <input name="C27_2" id="C27_2" />

              </td>
            </tr>
            <tr>
              <td>二、室存情况</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l1">总计数量</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2">纸质档案</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l3">以卷为保管单位档案</td>
              <td>卷</td>
              <td>34</td>
              <td>
                <input name="C28_1" id="C28_1" />
              </td>
              <td>
                <input name="C28_2" id="C28_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3">以件为保管单位档案</td>
              <td>件</td>
              <td>35</td>
              <td>
                <input name="C29_1" id="C29_1" />
              </td>
              <td>
                <input name="C29_2" id="C29_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3">总排架长度</td>
              <td>米</td>
              <td>36</td>
              <td>
                <input name="C30_1" id="C30_1" />
              </td>
              <td>
                <input name="C30_2" id="C30_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">电子档案</td>
              <td>GB</td>
              <td>37</td>
              <td>
                <input name="C31_1" id="C31_1" />
              </td>
              <td>
                <input name="C31_2" id="C31_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">其中：文书类电子档案</td>
              <td>件</td>
              <td>38</td>
              <td>
                <input name="C32_1" id="C32_1" />
              </td>
              <td>
                <input name="C32_2" id="C32_2" />
              </td>
            </tr>

            <tr>
              <td class="text-indent-l2"></td>
              <td>GB</td>
              <td>39</td>
              <td>
                <input name="C33_1" id="C33_1" />
              </td>
              <td>
                <input name="C33_2" id="C33_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l3">数码照片</td>
              <td>张</td>
              <td>40</td>
              <td>
                <input name="C34_1" id="C34_1" />
              </td>
              <td>
                <input name="C34_2" id="C34_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l3"></td>
              <td>GB</td>
              <td>41</td>
              <td>
                <input name="C35_1" id="C35_1" />
              </td>
              <td>
                <input name="C35_2" id="C35_2" />

              </td>
            </tr>

            <tr>
              <td class="text-indent-l3">数字录音、数字录像</td>
              <td>小时</td>
              <td>42</td>
              <td>
                <input name="C36_1" id="C36_1" />
              </td>
              <td>
                <input name="C36_2" id="C36_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l3"></td>
              <td>GB</td>
              <td>43</td>
              <td>
                <input name="C37_1" id="C37_1" />
              </td>
              <td>
                <input name="C37_2" id="C37_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">其他载体档案</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2">照片档案</td>
              <td>张</td>
              <td>44</td>
              <td>
                <input name="C38_1" id="C38_1" />
              </td>
              <td>
                <input name="C38_2" id="C38_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">录音磁带、录像磁带、影片档案</td>
              <td>盘</td>
              <td>45</td>
              <td>
                <input name="C39_1" id="C39_1" />
              </td>
              <td>
                <input name="C39_2" id="C39_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">实物档案</td>
              <td>件</td>
              <td>46</td>
              <td>
                <input name="C40_1" id="C40_1" />
              </td>
              <td>
                <input name="C40_2" id="C40_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">其中室存永久档案情况</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2">纸质档案</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td></td>
            </tr>
            <tr>
              <td class="text-indent-l3">以卷为保管单位档案</td>
              <td>卷</td>
              <td>47</td>
              <td>
                <input name="C41_1" id="C41_1" />
              </td>
              <td>
                <input name="C41_2" id="C41_2" />

              </td>
            </tr>

            <tr>
              <td class="text-indent-l3">以件为保管单位档案</td>
              <td>件</td>
              <td>48</td>
              <td>
                <input name="C42_1" id="C42_1" />
              </td>
              <td>
                <input name="C42_2" id="C42_2" />

              </td>
            </tr>


            <tr>
              <td class="text-indent-l1">电子档案</td>
              <td>GB</td>
              <td>49</td>
              <td>
                <input name="C43_1" id="C43_1" />
              </td>
              <td>
                <input name="C43_2" id="C43_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2">其中：文书类电子档案</td>
              <td>件</td>
              <td>50</td>
              <td>
                <input name="C44_1" id="C44_1" />
              </td>
              <td>
                <input name="C44_2" id="C44_2" />

              </td>
            </tr>

            <tr>
              <td class="text-indent-l2"></td>
              <td>GB</td>
              <td>51</td>
              <td>
                <input name="C45_1" id="C45_1" />
              </td>
              <td>
                <input name="C45_2" id="C45_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3">数码照片</td>
              <td>张</td>
              <td>52</td>
              <td>
                <input name="C46_1" id="C46_1" />
              </td>
              <td>
                <input name="C46_2" id="C46_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3"></td>
              <td>GB</td>
              <td>53</td>
              <td>
                <input name="C47_1" id="C47_1" />
              </td>
              <td>
                <input name="C47_2" id="C47_2" />
              </td>
            </tr>

            <tr>
              <td class="text-indent-l3 ">数字录音、数字录像</td>
              <td>小时</td>
              <td>54</td>
              <td>
                <input name="C48_1" id="C48_1" />
              </td>
              <td>
                <input name="C48_2" id="C48_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3 "></td>
              <td>GB</td>
              <td>55</td>
              <td>
                <input name="C49_1" id="C49_1" />
              </td>
              <td>
                <input name="C49_2" id="C49_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l1 ">其他载体档案</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">照片档案</td>
              <td>张</td>
              <td>56</td>
              <td>
                <input name="C50_1" id="C50_1" />
              </td>
              <td>
                <input name="C50_2" id="C50_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">录音磁带、录像磁带、影片档案</td>
              <td>盘</td>
              <td>57</td>
              <td>
                <input name="C51_1" id="C51_1" />
              </td>
              <td>
                <input name="C51_2" id="C51_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l1 ">实物档案</td>
              <td>件</td>
              <td>58</td>
              <td>
                <input name="C52_1" id="C52_1" />
              </td>
              <td>
                <input name="C52_2" id="C52_2" />
              </td>
            </tr>

            <tr>
              <td class="text-indent-l1 ">其中室存30年（长期）保管档案情况</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">纸质档案</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l3 ">以件卷保管单位档案</td>
              <td>卷</td>
              <td>59</td>
              <td>
                <input name="C53_1" id="C53_1" />
              </td>
              <td>
                <input name="C53_2" id="C53_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3 ">以件为保管单位档案</td>
              <td>件</td>
              <td>60</td>
              <td>
                <input name="C54_1" id="C54_1" />
              </td>
              <td>
                <input name="C54_2" id="C54_2" />

              </td>
            </tr>

            <tr>
              <td class="text-indent-l2 ">电子档案</td>
              <td>GB</td>
              <td>61</td>
              <td>
                <input name="C55_1" id="C55_1" />
              </td>
              <td>
                <input name="C55_2" id="C55_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3 ">其中：文书类电子档案</td>
              <td>件</td>
              <td>62</td>
              <td>
                <input name="C56_1" id="C56_1" />
              </td>
              <td>
                <input name="C56_2" id="C56_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3 "></td>
              <td>GB</td>
              <td>63</td>
              <td>
                <input name="C57_1" id="C57_1" />
              </td>
              <td>
                <input name="C57_2" id="C57_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3 ">数码照片</td>
              <td>张</td>
              <td>64</td>
              <td>
                <input name="C58_1" id="C58_1" />
              </td>
              <td>
                <input name="C58_2" id="C58_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3 "></td>
              <td>GB</td>
              <td>65</td>
              <td>
                <input name="C59_1" id="C59_1" />
              </td>
              <td>
                <input name="C59_2" id="C59_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l4 ">&nbsp&nbsp&nbsp数字录音、数字录像</td>
              <td>小时</td>
              <td>66</td>
              <td>
                <input name="C60_1" id="C60_1" />
              </td>
              <td>
                <input name="C60_2" id="C60_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l4 "></td>
              <td>GB</td>
              <td>67</td>
              <td>
                <input name="C61_1" id="C61_1" />
              </td>
              <td>
                <input name="C61_2" id="C61_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">其他载体档案</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l3 ">照片档案</td>
              <td>张</td>
              <td>68</td>
              <td>
                <input name="C62_1" id="C62_1" />
              </td>
              <td>
                <input name="C62_2" id="C62_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3 ">录音磁带、录像磁带、影片档案</td>
              <td>盘</td>
              <td>69</td>
              <td>
                <input name="C63_1" id="C63_1" />
              </td>
              <td>
                <input name="C63_2" id="C63_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">实物档案</td>
              <td>件</td>
              <td>70</td>
              <td>
                <input name="C64_1" id="C64_1" />
              </td>
              <td>
                <input name="C64_2" id="C64_2" />

              </td>
            </tr>

            <tr>
              <td>三、档案数字化成果</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l1 ">纸质档案</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">以卷为保管单位档案</td>
              <td>卷</td>
              <td>71</td>
              <td>
                <input name="C65_1" id="C65_1" />
              </td>
              <td>
                <input name="C65_2" id="C65_2" />

              </td>
            </tr>
            <tr>
              <td></td>
              <td>GB</td>
              <td>72</td>
              <td>
                <input name="C66_1" id="C66_1" />
              </td>
              <td>
                <input name="C66_2" id="C66_2" />

              </td>
            </tr>
            <tr>
              <td></td>
              <td>万幅</td>
              <td>73</td>
              <td>
                <input name="C67_1" id="C67_1" />
              </td>
              <td>
                <input name="C67_2" id="C67_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">以件为保管单位档案</td>
              <td>件</td>
              <td>74</td>
              <td>
                <input name="C68_1" id="C68_1" />
              </td>
              <td>
                <input name="C68_2" id="C68_2" />

              </td>
            </tr>
            <tr>
              <td></td>
              <td>GB</td>
              <td>75</td>
              <td>
                <input name="C69_1" id="C69_1" />
              </td>
              <td>
                <input name="C69_2" id="C69_2" />
              </td>
            </tr>
            <tr>
              <td></td>
              <td>万幅</td>
              <td>76</td>
              <td>
                <input name="C70_1" id="C70_1" />
              </td>
              <td>
                <input name="C70_2" id="C70_2" />

              </td>
            </tr>

            <tr>
              <td class="text-indent-l1 ">其他载体档案</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">照片档案</td>
              <td>GB</td>
              <td>77</td>
              <td>
                <input name="C71_1" id="C71_1" />
              </td>
              <td>
                <input name="C71_2" id="C71_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">录音磁带、录像磁带、影片档案</td>
              <td>GB</td>
              <td>78</td>
              <td>
                <input name="C72_1" id="C72_1" />
              </td>
              <td>
                <input name="C72_2" id="C72_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">其他</td>
              <td>GB</td>
              <td>79</td>
              <td>
                <input name="C73_1" id="C73_1" />
              </td>
              <td>
                <input name="C73_2" id="C73_2" />
              </td>
            </tr>
            <tr>
              <td>四、档案编目情况</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l1 ">机读目录</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">案卷级</td>
              <td>万条</td>
              <td>80</td>
              <td><input name="C74_1" id="C74_1" /></td>

              <td><input name="C74_2" id="C74_2" /></td>

            </tr>
            <tr>
              <td class="text-indent-l2 ">文件级</td>
              <td>万条</td>
              <td>81</td>
              <td><input name="C75_1" id="C75_1" /></td>
              <td><input name="C75_2 " id="C75_2" /></td>
            </tr>

            <tr>
              <td>五、检索工具</td>
              <td>种</td>
              <td>82</td>
              <td><input name="C76_1" id="C76_1" /></td>
              <td><input name="C76_2" id="C76_2" /></td>
            </tr>

            <tr>
              <td>六、本年接收档案情况</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l1 ">纸质档案</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">以卷为保管单位档案</td>
              <td>卷</td>
              <td>83</td>
              <td>
                <input name="C77_1" id="C77_1" />
              </td>
              <td>
                <input name="C77_2" id="C77_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">以件为保管单位档案</td>
              <td>件</td>
              <td>84</td>
              <td>
                <input name="C78_1" id="C78_1" />
              </td>
              <td>
                <input name="C78_2" id="C78_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l1 ">电子档案</td>
              <td>GB</td>
              <td>85</td>
              <td>
                <input name="C79_1" id="C79_1" />
              </td>
              <td>
                <input name="C79_2" id="C79_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">其中：文书类电子档案</td>
              <td>件</td>
              <td>86</td>
              <td>
                <input name="C80_1" id="C80_1" />
              </td>
              <td>
                <input name="C80_2" id="C80_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 "></td>
              <td>GB</td>
              <td>87</td>
              <td>
                <input name="C81_1" id="C81_1" />
              </td>
              <td>
                <input name="C81_2" id="C81_2" />

              </td>
            </tr>
            <tr>
              <td class="text-indent-l3 ">数码照片</td>
              <td>张</td>
              <td>88</td>
              <td>
                <input name="C82_1" id="C82_1" />
              </td>
              <td>
                <input name="C82_2" id="C82_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l3 "></td>
              <td>GB</td>
              <td>89</td>
              <td>
                <input name="C83_1" id="C83_1" />
              </td>
              <td>
                <input name="C83_2" id="C83_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l3">数字录音、数字录像</td>
              <td>小时</td>
              <td>90</td>
              <td>
                <input name="C84_1" id="C84_1" />
              </td>
              <td>
                <input name="C84_2" id="C84_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l3"></td>
              <td>GB</td>
              <td>91</td>
              <td>
                <input name="C85_1" id="C85_1" />
              </td>
              <td>
                <input name="C85_2" id="C85_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">其他载体档案</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">照片档案</td>
              <td>张</td>
              <td>92</td>
              <td>
                <input name="C86_1" id="C86_1" />
              </td>
              <td>
                <input name="C86_2" id="C86_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">录音磁带、录像磁带、影片档案</td>
              <td>盘</td>
              <td>93</td>
              <td>
                <input name="C87_1" id="C87_1" />
              </td>
              <td>
                <input name="C87_2" id="C87_2" />
              </td>

            </tr>
            <tr>
              <td class="text-indent-l1">实物档案</td>
              <td>件</td>
              <td>94</td>
              <td>
                <input name="C88_1" id="C88_1" />
              </td>
              <td>
                <input name="C88_2" id="C88_2" />
              </td>

            </tr>
            <tr>
              <td>七、本年是否向档案馆移交档案</td>
              <td>—</td>
              <td>95</td>
              <td>
                <input name="C89_1" id="C89_1" />
              </td>
              <td>
                <input name="C89_2" id="C89_2" />
              </td>
            </tr>
            <tr>
              <td>八、本年是否有移出档案</td>
              <td>—</td>
              <td>96</td>
              <td>
                <input name="C90_1" id="C90_1" />
              </td>
              <td>
                <input name="C90_2" id="C90_2" />
              </td>
            </tr>
            <tr>
              <td>九、本年是否有销毁档案</td>
              <td>—</td>
              <td>97</td>
              <td>
                <input name="C91_1" id="C91_1" />
              </td>
              <td>
                <input name="C91_2" id="C91_2" />
              </td>
            </tr>

            <tr>
              <td>十、档案利用情况</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l1 ">本年利用档案</td>
              <td>人次</td>
              <td>98</td>
              <td>
                <input name="C92_1" id="C92_1" />
              </td>
              <td>
                <input name="C92_2" id="C92_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l1 "></td>
              <td>卷（件）次</td>
              <td>99</td>
              <td>
                <input name="C93_1" id="C93_1" />
              </td>
              <td>
                <input name="C93_2" id="C93_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l1 ">本年编研成果</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2 ">公开出版</td>
              <td>种</td>
              <td>100</td>
              <td>
                <input name="C94_1" id="C94_1" />
              </td>
              <td>
                <input name="C94_2" id="C94_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l2 "></td>
              <td>万字</td>
              <td>101</td>
              <td>
                <input name="C95_1" id="C95_1" />
              </td>
              <td>
                <input name="C95_2" id="C95_2" />
              </td>
            </tr>

            <tr>
              <td class="text-indent-l2 ">内部参考</td>
              <td>种</td>
              <td>102</td>
              <td>
                <input name="C96_1" id="C96_1" />
              </td>
              <td>
                <input name="C96_2" id="C96_2" />
              </td>
            </tr>

            <tr>
              <td class="text-indent-l2 "></td>
              <td>万字</td>
              <td>103</td>
              <td>
                <input name="C97_1" id="C97_1" />
              </td>
              <td>
                <input name="C97_2" id="C97_2" />
              </td>
            </tr>

            <tr>
              <td>十一、档案室设施设备情况</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l1">档案室建筑面积</td>
              <td>平方米</td>
              <td>104</td>
              <td>
                <input name="C98_1" id="C98_1" />
              </td>
              <td>
                <input name="C98_2" id="C98_2" />
              </td>

            </tr>
            <tr>
              <td class="text-indent-l2">其中：档案库房建筑面积</td>
              <td>平方米</td>
              <td>105</td>
              <td>
                <input name="C99_1" id="C99_1" />
              </td>
              <td>
                <input name="C99_2" id="C99_2" />
              </td>
            </tr>
            <tr>
              <td class="text-indent-l1">档案室设备</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l2">服务器</td>
              <td>台</td>
              <td>106</td>
              <td><input name="C100_1" id="C100_1" /></td>
              <td><input name="C100_2" id="C100_2" /></td>
            </tr>
            <tr>
              <td class="text-indent-l2">安全防范系统</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
              <td>—</td>
            </tr>
            <tr>
              <td class="text-indent-l3">火灾自动报警系统</td>
              <td>套</td>
              <td>107</td>
              <td><input name="C101_1" id="C101_1" /></td>
              <td><input name="C101_2" id="C101_2" /></td>
            </tr>
            <tr>
              <td class="text-indent-l3">温湿度控制系统</td>
              <td>套</td>
              <td>108</td>
              <td><input name="C102_1" id="C102_1" /></td>
              <td><input name="C102_2" id="C102_2" /></td>
            </tr>

            <tr>
              <td>十二、数学档案室</td>
              <td>个</td>
              <td>109</td>
              <td><input name="C103_1" id="C103_1" /></td>
              <td><input name="C103_2" id="C103_2" /></td>
            </tr>
          </tbody>
          <tfoot style="display: table-footer-group;border-top: 2px solid #000; ">
            <tr style="height: 15px; ">
              <td colspan="4 ">&nbsp;</td>
            </tr>
          </tfoot>
        </table>

        <div style="border: 0;height: 50px;text-indent:0;width: 70%;margin: auto;display: flex;flex-direction: row "
          align="left " class="">
          <p style="display: flex">
            单位负责人：
            <input name="C104_1" id="C104_1" class="hid " width="10%" />
          </p>
          <p style="display: flex;margin-left:15px">
            统计负责人：
            <input name="C105_1" id="C105_1" class="hid "   width="60%" />
          </p>
          <p style="display: flex;margin-left:15px">
            填表人：
            <input name="C106_1" id="C106_1" class="hid "   width="60%" />
          </p>
          <p style="display: flex;margin-left:15px">
            报出时间：
            <input name="C107_1" id="C107_1" class="hid "  width="60%"  />
          </p>
        </div>
      </div>
    </form>


  </div>
</template>
<style type="text/css">
.tables {
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0 auto;
  border-top: 2px solid #000;
}

#form1 table tr {
  height: 30px;
}

.tables thead td {
  text-align: center;
  border-bottom: 1px solid #000;
}

.tables thead .border-right-1 {
  border-right: 1px solid #000;
}

#form1 table tbody tr:nth-child(2n) {
  background: #fff;
}

#form1 table tbody td {
  border: 0;
}

#form1 table tbody td {
  border-bottom: 1px solid #000;
}

/* 表格加上实线 syd */
#form1 table tbody tr td:first-child {
  text-indent: 1em;
  text-align: left !important;
  border-right: 1px solid #000;
}

#form1 table tbody tr td:first-child+td {
  text-indent: 0;
  text-align: center !important;
  border-right: 1px solid #000;
}

#form1 table tbody tr td:first-child+td+td {
  text-indent: 0;
  text-align: center !important;
  border-right: 1px solid #000;
}

.text-indent-l1 {
  text-indent: 3em !important;
}

.text-indent-l2 {
  text-indent: 5em !important;
}

.text-indent-l3 {
  text-indent: 7em !important;
}

.text-indent-l4 {
  text-indent: 9em !important;
}

#form1 table tbody td input {
  width: 85%;
  margin: auto;
  background-color: #f6f9fd;
  box-shadow: 0px 2px 4px 0px rgba(16, 30, 53, 0.1);
  border-radius: 2px;
  border: solid 1px #dde0e4;
  text-align: center;
}

.btn-list button {
  font-size: 16px;
  margin: 1% 0.2% 0% 0 !important;
}

.hid {
  padding: 0 0.5em;
  background-color: #f6f9fd;
  box-shadow: 0px 2px 4px 0px rgba(16, 30, 53, 0.1);
  border-radius: 2px;
  border: solid 1px #dde0e4;
}

.page p {
  height: 28px;
}

@page {
  size: auto A4 landscape;
  margin: 25mm 0;
}

@media print {
  .con-card {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  .card-title,
  .btn-list {
    display: none;
  }

  .page {
    margin: initial;
    border: initial;
    width: initial;
    box-shadow: initial;
    background: initial;
  }

  .page div {
    width: 167mm !important;
    margin: auto !important;
  }

  .page h1 {
    margin: 15px auto !important;
  }

  .page p {
    height: 22px !important;
  }

  .page table {
    width: 167mm !important;
  }

  .page table thead {
    margin: 25mm auto 0 !important;
    padding: 25mm auto 0 !important;
  }

  input {
    background: rgba(255, 255, 255, 0) !important;
    border: 0 !important;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0) !important;
  }
}

.align-rigth {
  text-align: right;
}

/*table tbody tr td:last-child {
  text-indent: 0;
  text-align: center !important;
}*/
#form1 table tbody tr td:nth-last-child(2) {
  text-indent: 0;
  text-align: center !important;
  border-right: 1px solid #000;
}
</style>
<script>
/*function printPreview(){
  window.print();//将要被打印的表格
}*/
import estimateTableHeight from '@/mixins/estimateTableHeight'
import {
  addYearReport, getDetail, getStatistics
} from "@/api/archive/statistics/annualReport/yearReport";
import jquery from '@/api/archive/statistics/annualReport/jquery-1.7.1.min'//计算左侧树的高度

import { addsafetyCheck } from "@/api/archive/warehouseManagement/DailySafety";
//计算左侧树的高度
export default {
  props: ["printOpen", "jquery"],
  data() {
    return {
      yearReport: {},
      year: new Date().getFullYear() + '',
      yearReportData: undefined,
      yearReportDataValue: undefined,
      type:0
    }
  },
  computed: {

    isSize() {

      if (this.$store.getters.size == 'small') {
        this.size = 'font-size: 12px;'
      } else {
        this.size = 'font-size: 14px;'
      }
      return this.size
    }


  },
  created() {
    this.getYearReport();
  },
  methods: {
    init(val, printTitle) {
      // console.log(val,printTitle)
      this.printTitle = printTitle
      this.tableData = val;
    },
    //关闭页面
    closeDelDialog() {
      this.$emit("printCancel")
    },
    printPreview() {


      const tableElement = document.querySelector('#form1');
      const iframe = document.createElement('iframe');
      iframe.style.display = 'none';
      document.body.appendChild(iframe);

      const iframeDoc = iframe.contentWindow.document;

      // const input = $('input');
      // input.each(function () {
      //   $(this).attr('value', $(this).val());
      // });
      // #form1 table tbody td{border-bottom: 1px solid #000;}   /* 表格加上实线 syd */
      iframeDoc.write(`
          <html>
          <head>
<!--            <title>打印表单</title>-->
            <style>

         .tables {border-collapse: collapse;border-spacing: 0;margin: 0 auto;border-top: 2px solid #000;}

         #form1 table tr{height: 30px;}
   .tables thead td {text-align: center;border-bottom: 1px solid #000;}
.tables thead .border-right-1 {border-right: 1px solid #000;}
#form1 table tbody tr:nth-child(2n){background: #fff;}
#form1 table tbody td{border:0;}
#form1 table tbody td{border-bottom: 1px solid #000;}   /* 表格加上实线 syd */
#form1 table tbody tr td:first-child{text-indent: 1em;text-align: left !important;border-right: 1px solid #000;}
#form1 table tbody tr td:first-child+td{text-indent: 0;text-align: center !important;border-right: 1px solid #000;}
#form1 table tbody tr td:first-child+td+td{text-indent: 0;text-align: center !important;border-right: 1px solid #000;}
.text-indent-l1{text-indent: 3em !important;}
.text-indent-l2{text-indent: 5em !important;}
.text-indent-l3{text-indent: 7em !important;}
.text-indent-l4{text-indent: 9em !important;}
#form1 table tbody td input {width: 85%;margin: auto;background-color: #f6f9fd;box-shadow: 0px 2px 4px 0px rgba(16, 30, 53, 0.1);border-radius: 2px;border: solid 1px #dde0e4;text-align:left;}
.btn-list button {
  font-size: 16px;
  margin: 1% 0.2% 0% 0 !important;
}
.hid {padding: 0 0.5em;background-color: #f6f9fd;box-shadow: 0px 2px 4px 0px rgba(16, 30, 53, 0.1);border-radius: 2px;border: solid 1px #dde0e4;}
.page p{height: 28px;}
@page{size: auto A4 landscape;margin: 25mm 0;}
@media print {
  .con-card{padding: 0 !important;margin: 0 !important;border: 0 !important;}
  .card-title,.btn-list{display: none;}
  .page {margin: initial;border: initial;width: initial;box-shadow: initial;background: initial;}
  .page div{width: 167mm !important;margin: auto !important;}
  .page h1{margin: 15px auto !important;}
  .page p{height: 22px !important;}
  .page table{width: 167mm !important;}
  .page table thead{margin: 25mm auto 0 !important;padding: 25mm auto 0 !important;}
  input{background:rgba(255, 255, 255, 0) !important;border: 0 !important;box-shadow:0 0 0 0 rgba(255, 255, 255, 0) !important;}
}
.align-rigth{text-align: right;}
/*table tbody tr td:last-child {
  text-indent: 0;
  text-align: center !important;
}*/
#form1 table tbody tr td:nth-last-child(2) {
  text-indent: 0;
  text-align: center !important;
  border-right: 1px solid #000;
}
            </style>
          </head>
          <body>
             ${tableElement.outerHTML}
            <script>
              window.onload = function() {
                window.print();
                window.close();
              }
            <\/script>
          </body>
          </html>
      `);
      iframeDoc.close();



    },
    handAdd() {

      this.yearReport.year = this.year;
      this.yearReport.contents = JSON.stringify($('#form1').serializeArray());
      this.yearReport.type = this.type;
      addYearReport(this.yearReport).then(response => {
        this.$modal.msgSuccess("保存成功");

      })

    }, handleExport() {
      this.yearReport.year = this.year;
      this.yearReport.contents = JSON.stringify($('#form1').serializeArray());
      this.yearReport.type=this.type

      this.download('archive/yearReport/export', {
        ...this.yearReport
      }, this.year + `年报统计_${new Date().getTime()}.xlsx`)
    },
    getYearReport() {
      const year = this.year;
      console.log(year, "xxxx")
      if (year != null && year != '') {
        getDetail(this.year,this.type).then(response => {
          /*this.thForm = response.data*/
          this.yearReportData = response.data;
          console.log(this.yearReportData, "xxxx")
          if (this.yearReportData != undefined) {

            var contents = JSON.parse(this.yearReportData.contents);
            console.log(contents, "sarewrew")
            for (var i in contents) {
              $("#" + contents[i].name + "").val(contents[i].value)
              if (contents[i].name == "C108_1") {
                $("#" + contents[i].name + "").val("DA-3表")
              }
              if (contents[i].name == "C109_1") {
                $("#" + contents[i].name + "").val("国家统计局")
              }
              if (contents[i].name == "C110_1") {
                $("#" + contents[i].name + "").val("国家统计局")
              }

              if (contents[i].name == "C112_1") {
                $("#" + contents[i].name + "").val("国统制(2022)190号")
              }
              if (contents[i].name == "C114_1") {
                $("#" + contents[i].name + "").val("2025年12月")
              }
            }

          } else {

            $("input").each(function () {
              if ($(this).attr("id") != 'year') {

                $(this).val("");

              }

            });

                $("#C108_1").val("DA-3表")


                $("#C109_1").val("国家统计局")


                $("#C110_1").val("国家统计局")

                $("#C112_1").val("国统制(2022)190号")

                $("#C114_1").val("2025年12月")

          }

        })
      } else {
        this.$message.warning('请选择年份！');

      }

    },
    getStatistics() {

      const year = this.year;
      if (year != null && year != undefined) {
        getStatistics(year).then(response => {
          /*this.thForm = response.data*/
          this.$modal.msgSuccess("统计完成");
          this.yearReportDataValue = response.data;
          console.log(this.yearReportDataValue)
          if (this.yearReportDataValue != undefined) {

            /*var contents=JSON.parse(this.yearReportDataValue);
          console.log(contents,"sarewrew")
          for( var i in contents){
            $("#"+contents[i].name+"").val(contents[i].value)
          }
*/
            for (const key in this.yearReportDataValue) {
              $("#" + key + "").val(this.yearReportDataValue[key])
            }
          } else {

            $("input").each(function () {
              $(this).attr('value', "");
            });
          }

        })
      } else {
        this.$message.warning('请选择年份！');

      }

    }



  }
}
</script>
